package com.tydic.order.domain.vo;

import com.tydic.product.domain.Product;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class PlaceOrder implements Serializable {
    @Serial
    private static final long serialVersionUID = 8101885342738324041L;
    private Product parentProduct;
    private List<Product> childrenList = new ArrayList<>();

    public PlaceOrder(Product parentProduct) {
        this.parentProduct = parentProduct;
    }
}
